package com.wnxy.article.service.impl;

import com.wnxy.article.entity.Article;
import com.wnxy.article.mapper.ArticleMapper;
import com.wnxy.article.mapper.UserMapper;
import com.wnxy.article.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleServiceImpl implements ArticleService {
    @Autowired
    private ArticleMapper articleMapper;
    @Autowired
    private UserMapper userMapper;

    @Override
    public List<Article> findAll() {
        // 查询所有
        List<Article> list = articleMapper.findAll();
        return list;
    }
}
